package mspbots.teams.data.core.users;

import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

/**
 * GroupsServiceImpl
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/9/28
 */
@Log4j2
@Service
@RequiredArgsConstructor
public class UsersServiceImpl {

    private final UsersRepository usersRepository;

    public Flux<User> find(Long tenantId) {
        return this.usersRepository.findByTenantId(tenantId);
    }
}
